//
//  MqFindBikeBikeDetailHeaderView.m
//  Meiqi
//
//  Created by lanou on 16/1/20.
//  Copyright © 2016年 KFC. All rights reserved.
//

#import "MqFindBikeBikeDetailHeaderView.h"

@implementation MqFindBikeBikeDetailHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        _imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 200)];
        //_imageV.backgroundColor = [UIColor redColor];
        [self addSubview:_imageV];
        
        _starLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 210, 100, 20)];
        //_starLabel.backgroundColor = [UIColor redColor];
        [self addSubview:_starLabel];
        for (int i = 0; i < 5; i ++) {
            _starImage = [[UIImageView alloc] initWithFrame:CGRectMake(i * 20, 0, 20, 20)];
            _starImage.tag = 1000 + i;
            _starImage.image = [UIImage imageNamed:@"icon_shop_detail_noRate@3x"];
            [_starLabel addSubview:_starImage];
        }
        
        _gradeLabel = [[UILabel alloc] initWithFrame:CGRectMake(110, 210, 60, 30)];
        //_gradeLabel.backgroundColor = [UIColor redColor];
        [self addSubview:_gradeLabel];
        
        _addGradeButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _addGradeButton.frame = CGRectMake(kScreenWidth - 90, 210, 80, 30);
        //_addGradeButton.backgroundColor = [UIColor redColor];
        [self addSubview:_addGradeButton];
        
        _priceLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 260, 200, 30)];
        //_priceLabel.backgroundColor = [UIColor blueColor];
        [self addSubview:_priceLabel];
        
        _agencyButton =[UIButton buttonWithType:(UIButtonTypeCustom)];
        _agencyButton.frame = CGRectMake(kScreenWidth - 150, 260, 140, 30);
        [self addSubview:_agencyButton];
        
        
    }
    return self;
}

@end
